﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Fotoalbum.UI
{
    public partial class frmFotoBearbeiten : Form
    {
        BLL.ILogikAdapter logikAdapter = BLL.LogikAdapter.CreateInstance();

        BLL.Bild _bild;
        private BLL.Bild _Bild 
        {
            get { return _bild; }
            set 
            {
                _bild = value;

                if (_bild == null)
                    pictureBox1.ImageLocation = "";
                else
                    pictureBox1.ImageLocation = _bild.Data.DateiPfad;
            }
        }

        public frmFotoBearbeiten()
        {
            InitializeComponent();
        }

        private void frmFotoBearbeiten_Load(object sender, EventArgs e)
        {
            _Bild = logikAdapter.BildAuslesen(Guid.Empty);
        }

        private void mnuDateiSchließen_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
